#案例：使用BS4来解析html！

import requests
from bs4 import BeautifulSoup #导入bs4库


#发请求：GET https://shop.aircheng.com/
r=requests.get(url="https://shop.aircheng.com/")
#获取响应实体：html
response_body=r.text

#使用BS4库来定位h3标签
soup = BeautifulSoup(response_body,'lxml');
eles=soup.select("div.index_card_container >a:nth-child(1)>h3")
ele_h3=eles[0]

#获取该标签的文本内容
print(str(ele_h3.string))

